<template>
     <div class="V-Tab">
        <div class="title">
            <span @click="gettab(true)" :class="flags==true?'active':''">推荐</span>
            <div :class="flags==true?'bgc1':''"></div>
            <span @click="gettab(false)" :class="flags==false?'active':''">MV</span>
            <div :class="flags==false?'bgc2':''"></div>
        </div>
    </div>
</template>

<script>
export default {
    props: {
        flags:Boolean
    },
    methods: {
        gettab(val){
            this.$emit('gettab', val);
        }
    },
}
</script>

<style scoped lang="scss">
.V-Tab{
        margin-bottom: 66.7px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 99;
        width: 100%;
        height: 200px;
        background: #FAFAFA;
        .title{
        display: flex;
        align-items: flex-end;
        position: relative;
        span{
        padding: 0 20px;
        z-index: 99;
        
    }
    }
    }
    .active{
        font-size: 100px;
    }
    .bgc1{
        width: 213px;
        height: 33px;
        background: lawngreen;
        border-radius: 20px;
        position: absolute;
        left: 10px;
        bottom: 0;
    }
    .bgc2{
        width: 183px;
        height: 33px;
        background: lawngreen;
        border-radius: 20px;
        position: absolute;
        left: 173px;
        bottom: 0;
    }
</style>